<template>
  <div>
    <!-- <p>{{ msg }}</p> -->

    <TestPage msg="1"></TestPage>
    <button @click="init">测试</button>
  </div>
</template>

<script>
export default {
  name: 'HomePage',

  data() {
    return {
      // msg: 'Welcome to Your Vue.js App'
    }
  },
  methods: {
    init() {
      this.request
        .post('/user/login', {
          data: 'xnSa19sbN4yq52BWV%2BHaatAMqJi%2FNBe43R0kec4ke3Uj%2B3cmKiK3OYaRDKNuCusfkvmlCGM3Dn840CgQWiWqxyEwmU2BngWxOIjf7rYiB9WFNKyECrtoBpigI09TzniJuK4ORl7VG7gaDlcX3aJoaPytIP5XxwxRuFM2QL%2FWCnc%3D',
          loginTime: '1667182687256'
        })
        .then(res => {
          localStorage.setItem('user', JSON.stringify(res.data))
        })
    }
  },
  created() {
    // this.init()
  },
  mounted() {
    // console.log(JSON.parse(localStorage.getItem('user')))
    console.log(new Date(1667182687256).toLocaleString())
  }
}
</script>

<style></style>
